Repository navigation
ci(testnet): resource sampling and a nodes input for testnet and robustness - #68
Merged
Merged
Conversation
…estnet and robustness - ci/testnet/sampler.py: every SAMPLE_SECONDS (default 60) host memory, swap, CPU busy/steal, load, disk, and RSS/CPU/threads of each node, executor JVM and harness script, into resources.tsv; on SIGTERM a summary (peaks, sums, block rate, spread, down samples) to resources-summary.txt and the log. It never fails a run. - run.sh: NODES must be odd, 5 to 25 (warning above 15, max_neighbours=16); the main loop writes t/min/max to progress; stop_all stops the sampler first, so its last sample sees the nodes, and prints the summary last. - testnet.yml: `nodes` input (5 to 15, checked before the build), job name with the node count, the summary in the step summary, resources files in the artifact. - robustness.yml: `nodes` and `timeout_min` inputs; the NODE_STORAGE scenarios (laid out for 7 nodes) run only at 7; longer job timeouts; contracts.log, node log files and resources in the artifact; the summary in the step summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
# Conflicts: # .github/workflows/robustness.yml
EnzinoBB
added a commit
that referenced
this pull request
Oct 22, 2026
… without an interval of progress Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 1 of the plan for testing smart contracts and sizing the test machine. This PR measures what a private network uses, and adds a way to choose how many nodes it has.
ci/testnet/sampler.py(new, standard library only). EverySAMPLE_SECONDS(default 60,0= off) it records intoresources.tsv:On SIGTERM it writes a summary: peaks, sums of RSS, block rate, spread between nodes, and samples with a node down. It never fails a run.
run.sh:NODESmust be odd, 5 to 25, with a warning above 15, sincemax_neighbours=16means no full mesh beyond that;progress(t, min and max sequence);stop_allstops the sampler first, so its last sample still sees the nodes, and prints the summary at the end of the log.testnet.yml:nodesinput (5 to 15), checked before the build;robustness.yml:nodesandtimeout_mininputs; scenarios with aNODE_STORAGElayout run only at 7 nodes;contracts.log, the node log files and the resources files in the artifact; the summary in the step summary.Validation: the
testnetlabel (7 nodes), a testnet dispatch withnodes=9, and robustness withonly=rocksdb-crash. The last one checks that the summary counts n6's restarts.🤖 Generated with Claude Code